




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/25/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectteams.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectteams.entity.YfProjectTeams;
import com.application.yfprojectteams.struts.form.YfProjectTeamsForm;
import com.application.yfprojectteams.dao.YfProjectTeamsDAO;
 /**
 * 
 * Description:YfProjectTeamsService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/25/2012 
 * 
 */
public class YfProjectTeamsService extends BaseService
{
	private YfProjectTeamsDAO yfProjectTeamsDAO;

	public YfProjectTeamsDAO getYfProjectTeamsDAO() {
		return this.yfProjectTeamsDAO;
	}

	public void setYfProjectTeamsDAO(YfProjectTeamsDAO yfProjectTeamsDAO) {
		this.yfProjectTeamsDAO = yfProjectTeamsDAO;
	}
        

        public YfProjectTeams getYfProjectTeams(YfProjectTeams yfProjectTeams) {
		return (YfProjectTeams) this.getBaseDao().queryByPk(yfProjectTeams, yfProjectTeams.getId());
	}
	
	public Integer getAllCountYfProjectTeams(YfProjectTeamsForm yfProjectTeamsForm){
		return this.yfProjectTeamsDAO.getAllCountYfProjectTeams(yfProjectTeamsForm);
	}
	
	public List<YfProjectTeams> searchYfProjectTeams(YfProjectTeamsForm yfProjectTeamsForm, PageBean pageBean) throws Exception {
		List<YfProjectTeams> yfProjectTeamsList = (List) this.yfProjectTeamsDAO.searchYfProjectTeams(yfProjectTeamsForm, pageBean);
		return yfProjectTeamsList;
	}
        
        public void deleteYfProjectTeamss(YfProjectTeamsForm yfProjectTeamsForm){
	   this.yfProjectTeamsDAO.deleteYfProjectTeamss(yfProjectTeamsForm);	 
	}
}
